import request from '@/utils/request'

// 查询商户客户公海信息列表
export function listPoolInfo(query) {
  return request({
    url: '/merchantdata/poolInfo/list',
    method: 'get',
    params: query
  })
}

// 查询商户客户公海信息详细
export function getPoolInfo(id) {
  return request({
    url: '/merchantdata/poolInfo/' + id,
    method: 'get'
  })
}

// 新增商户客户公海信息
export function addPoolInfo(data) {
  return request({
    url: '/merchantdata/poolInfo',
    method: 'post',
    data: data
  })
}

// 修改商户客户公海信息
export function updatePoolInfo(data) {
  return request({
    url: '/merchantdata/poolInfo',
    method: 'put',
    data: data
  })
}

// 用户捞取逻辑
export function laoquPoolInfo(data) {
  return request({
    url: '/merchantdata/poolInfo/laoqu',
    method: 'post',
    data: data
  })
}

// 用户分配逻辑
export function fenpeiPoolInfo(data) {
  return request({
    url: '/merchantdata/poolInfo/fenpei',
    method: 'post',
    data: data
  })
}

// 删除商户客户公海信息
export function delPoolInfo(id) {
  return request({
    url: '/merchantdata/poolInfo/' + id,
    method: 'delete'
  })
}
